<%@page import="com.mmy.domain.permissionmenu.TConstRole"%>
<%@page import="com.mmy.domain.permissionmenu.TConstMenu"%>
<%@page import="com.mmy.domain.permissionmenu.TConstRoleMenu"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
 <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="/WEB-INF/jsp/includeb.jsp"></jsp:include>	
<title>角色菜单</title>
</head>
<body>
	<div id="off-canvas-container" class="off-canvas-container">
		<jsp:include page="/WEB-INF/jsp/BackHeader.jsp"></jsp:include>
			<main class="at-padding-large-bottom">
			<article>		
	<header class="bg-light at-padding-large-top at-padding-large-bottom at-margin-large-bottom">
		<div class="page-header container">
			<h2>系统设置</h2>			
		</div>
	</header>
	<section class="container">
	

			<div>
				
				
						<h4 class="info-h4">
							<i class="fa fa-caret-right" aria-hidden="true" ></i>角色菜单信息管理
						</h4>
				<div >
				<input type="button" value="编辑" class="btn at-float-right" onclick="updatePermissionMenu()"> 
							
				<table class="info-table" >
					<tr>
						
						<th>角色名称</th>
						<th>菜单名称</th>			
						
					</tr>					
						
							<tr>
								<c:if test="${lstConstRoleMenu.size() > 0}">
								<td >
									<input type="hidden" name="id" value="${lstConstRoleMenu.get(0).getRoleID()}" >
									${lstConstRoleMenu.get(0).getRoleName()}
								</td>
								<td>
									
										<c:forEach var="lstConstRoleMenu" items="${lstConstRoleMenu}">
										${lstConstRoleMenu.getMenuName()}<br> 
										</c:forEach>
									
								</td>
								</c:if>
								<c:if test="${lstConstRoleMenu == null}">
								<td >
									<input type="hidden" name="id" value="${tConstRole.getRoleID()}" >
									${tConstRole.getRoleName()}
								</td>
								<td>
									
									
								</td>
								</c:if>
						
							</tr>
						
					
				</table>
				<center>
				
					<input type="button" class="btn" value="返回" onclick="rehidder()"/>
				</center> 
				</div>
				
			</div>
			</section>
			</article>
			</main>
		<jsp:include page="/WEB-INF/jsp/Footer.jsp"></jsp:include>
		</div>
		<jsp:include page="/WEB-INF/jsp/include2.jsp"></jsp:include>
</body>
</html>